mixin listAnim{
  Map<String,List<double>> listAnimData = {
  };

  double getListAnimData({required String key,required double index}){
    double _value = 0;

    if(!listAnimData.containsKey(key)){
      listAnimData[key]= [];
    }

    if((listAnimData[key] as List<double>).length > index){
      return (listAnimData[key] as List<double>)[index.toInt()];
    }else{
      listAnimData[key]= [];
      for(int i =0;i<=index;i++){
        (listAnimData[key] as List<double>).add(0);
      }
      (listAnimData[key] as List<double>)[index.toInt()] = 0;
    }
    return _value;
  }



  setListAnimData({ required String key,required double index,required double value}){
    (listAnimData[key] as List<double>)[index.toInt()] = value;
    //listAnimData[key+index.toString()] = value;
  }
}